package br.com.netomarin.bundesliga.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import br.com.netomarin.bundesliga.model.MatchModel;

public class EscalateMatchServlet extends HttpServlet {

	private static final long serialVersionUID = 1006790259934801246L;

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		
		String match = req.getParameter("match");
		MatchModel.escalateMatch(match);
		
		PrintWriter writer = resp.getWriter();
		writer.write("<html>");
		writer.write("<head></head>");
		writer.write("<body>");
		writer.write("Partida enviada para os moderadores e os advers&aacute;rios tamb&eacute;m ser&atilde;o notificados.");
		writer.write("</body></html>");
	}
}